import React from 'react';

// import Test from 'single/services/Test';
//https://github.com/reactjs/react-router/blob/master/docs/guides/RouteConfiguration.md
import Frame from 'components/pages/Frame';
import Home from 'components/services/Home';
import AgentsManage from 'components/services/AgentsManage';
import AccountsManage from 'components/services/AccountsManage';
import ModelsManage from 'components/services/ModelsManage';
import RolesManage from 'components/services/RolesManage';
import UsersManage from 'components/services/UsersManage';
import OrdersManage from 'components/services/OrdersManage';
import ExhibitionsManage from 'components/services/ExhibitionsManage';
import BannerManage from 'components/services/BannerManage';
import AppsManage from 'components/services/AppsManage';

var routes = {
    path: '',
    component: Frame,
    indexRoute: {component: Home},
    childRoutes: [
        {
            path: '/',
            component: Home
        },
        {
            path: 'agents',
            component: AgentsManage
        },
        {
            path: 'accounts',
            component: AccountsManage
        },
        {
            path: 'models',
            component: ModelsManage
        },
        {
            path: 'roles',
            component: RolesManage
        },
        {
            path: 'users',
            component: UsersManage
        },
        {
            path: 'orders',
            component: OrdersManage
        },
        {
            path: 'exhibitions',
            component: ExhibitionsManage
        },
        {
            path: 'banners',
            component: BannerManage
        },
        {
            path: 'app',
            component: AppsManage
        },
    ]
};

export default routes;